﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.TeamFoundation.VersionControl.Client;

namespace RenameTracker
{
    public class ItemHistory
    {
        public ItemHistory()
        { }
        
        public void Reset(Item item, bool showDeletes)
        {
            RequestedItem = item;

            var tfs = new TFS(item.VersionControlServer);
            History = tfs.GetNamespaceHistory(item, showDeletes).Reverse();
        }

        public Item RequestedItem { get; private set; }
        public IEnumerable<ChangeInfoExplained> History { get; private set; }
    }
}
